<h2>Incidencias de Patrimonios Culturales</h2>
<br />

<% if @cultural_heritage_incidences.size == 0   %>
  <p>Ninguna Incidencia encontrada</p>
<%else%>

<% form_tag url_for(:action=>"update_table"),{:id => "cultural_heritage_incidences_form_search" } do -%>

    <%#*<p class="two-col"><label>Buscar:</label><%= text_field_tag "search_id" %</p>%>
    <p class="two-col"><label>Patrimonio:</label><%= select_tag "search_incidence_cultural_heritage_id", options_for_select(@lista_select.collect {|t| [t.name, t.id]}),:include_blank=>"Seleccione" %></p>
    <p class="two-col"><label>Estado:</label><%= select_tag "search_state", options_for_select(@lista_select.collect {|t| [t.name, t.id]}),:include_blank=>"Seleccione" %></p>
    <input class="button" name="Buscar" value="Buscar" type="submit" />
    <span id="loading_search" style="display:none"></span>
<% end %>

<div id="incidences_table">
    <%= render :partial=>"table" %>
</div>

<br />

<%end%>

<%= link_to 'Nuevo', new_cultural_heritage_incidence_path %>
